package com.ldy.transmit.common.util;

import com.ldy.transmit.common.conf.SysConfigHolder;

import java.util.Properties;

public class ConfigUtil {
    private ConfigUtil() {
    }

    public static String get(String propertyName) {
        return get(propertyName, (String)null);
    }

    public static String get(String propertyName, String defaultValue) {
        Properties config = SysConfigHolder.loadConfigFromDisconf("sys.properties");
        return config.getProperty(propertyName, defaultValue);
    }
}
